package com.nine.entity;

/**
 * Orderitem entity. @author MyEclipse Persistence Tools
 */

public class Orderitem implements java.io.Serializable {

	// Fields

	private OrderitemId id;
	private Integer number;
	private String itemName;
	private Double marketPrice;
	private Integer discount;

	// Constructors

	/** default constructor */
	public Orderitem() {
	}

	/** minimal constructor */
	public Orderitem(OrderitemId id, Integer number, String itemName,
			Double marketPrice) {
		this.id = id;
		this.number = number;
		this.itemName = itemName;
		this.marketPrice = marketPrice;
	}

	/** full constructor */
	public Orderitem(OrderitemId id, Integer number, String itemName,
			Double marketPrice, Integer discount) {
		this.id = id;
		this.number = number;
		this.itemName = itemName;
		this.marketPrice = marketPrice;
		this.discount = discount;
	}

	// Property accessors

	public OrderitemId getId() {
		return this.id;
	}

	public void setId(OrderitemId id) {
		this.id = id;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Double getMarketPrice() {
		return this.marketPrice;
	}

	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}

	public Integer getDiscount() {
		return this.discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

}